package com.ruoyi.orderEat.controller;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.orderEat.domain.ShopSpecification;
import com.ruoyi.orderEat.service.ShopSpecificationService;
import com.ruoyi.orderEat.service.impl.ShopSpecificationServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

import static com.ruoyi.common.core.domain.AjaxResult.success;

/**
 * 商品类型表(shop_specification)表控制层
 *
 * @author xxxxx
 */
@RestController
@RequestMapping("/shop_specification")
public class ShopSpecificationController {
    /**
     * 服务对象
     */
    @Autowired
    private ShopSpecificationService shopSpecificationService;

    /**
     * 通过主键查询单条数据
     *
     * @return 单条数据
     */
    @GetMapping("getShopSpecificationList")
    public AjaxResult getShopSpecificationList() {
        List<ShopSpecification> shopSpecifications = shopSpecificationService.shopSpecificationList();
        return success(shopSpecifications);

    }

}
